/*
 *
 *
 *
 */
#include <iostream>
#include <SDL/SDL.h>
#include <SDL/SDL_ttf.h>

#ifndef _TEXT_H_
#define _TEXT_H_

using namespace std;

class Text
{
    private:
    
    TTF_Font *font;
    string fontFile;
    string text;
    int style;
    SDL_Surface *textSurface;
    SDL_Color color;
    SDL_Rect rect;
    
    public:
    
    double x,y;
    Text(string text,string fontFile,double x, double y,int style, Uint8 red, Uint8 green, Uint8 blue, int ptsize);
    ~Text(void);
    void render(SDL_Surface *screen);
    void updatePos(double x, double y);
    void changeText(string text);
    void changeStyle(int style);
    void changeColor(int red, int green, int blue);
    void changeSize(int psize);
    SDL_Rect getRect(void);
    
};

#endif
